<%--
  Created by IntelliJ IDEA.
  User: lt
  Date: 2017/6/5
  Time: 15:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html>
<head>
    <%@ include file="/common/include-core.jsp" %>
    <%@ include file="/common/jspTemplate.jsp" %>
    <!--/meta 作为公共模版分离出去-->
    <title>添加实体产品</title>
    <style>
        .photo {
            margin-left: 285px;
            margin-top: 10px;
            margin-bottom: 10px;
            height: 200px;
        }
    </style>
</head>
<body>
<article class="page-container">
    <form action="" class="form form-horizontal" id="form-member-add">
        <input id="productEntityId" name="productEntityId" value="${productEntity.productEntityId}" type="hidden">
        <input id="tid" name="tid" value="${productEntity.tid}" type="hidden">
        <input id="productId" name="productId" value="${productId}" type="hidden">
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>产品实体名称：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="${productEntity.productEntityName}" placeholder="产品实体名称"
                       id="productEntityName" name="productEntityName">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">产品实体介绍：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text" value="${productEntity.productEntityIntroduction}"
                       placeholder="产品实体介绍" id="productEntityIntroduction" name="productEntityIntroduction">
            </div>
        </div>


        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">价格(元)：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text"
                       value="<fmt:formatNumber value="${productEntity.price/100}" pattern="#0.00" />"
                       placeholder="价格" id="price" name="price">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">优惠价格(元)：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text"
                       value="<fmt:formatNumber value="${productEntity.realPrice/100}" pattern="#0.00" />"
                       placeholder="价格" id="realPrice" name="realPrice">
            </div>
        </div>
         <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">数量：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text"
                       value="<fmt:formatNumber value="${productEntity.productEntityAmount}" pattern="0" />"
                       placeholder="数量" id="productEntityAmount" name="productEntityAmount">
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">颜色：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text"
                       value="${productEntity.productEntityColour}"
                       placeholder="颜色" id="productEntityColour" name="productEntityColour" onclick="showColor();">

            </div>
        </div>


        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">颜色编码：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <input type="text" class="input-text"
                       value="${productEntity.productEntityColourCode}"
                       placeholder="颜色" id="productEntityColourCode" name="productEntityColourCode">
              <%--     <input id="productEntityColourCode" name="productEntityColourCode" type="text" class="input_cxcolor" readonly    value="${productEntity.productEntityColourCode}" >
--%>
            </div>
        </div>


        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>状态：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <span class="select-box">
                    <select class="select" name="status">
                        <option value="1" ${productEntity.status==1?"selected":"" }>有效</option>
                        <option value="0" ${productEntity.status==0?"selected":"" }>无效</option>
                    </select>
				</span>
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <input class="btn btn-primary radius" type="submit" id="advertSubmit"
                       value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</article>
<script type="text/javascript" src="/static/js/admin/product/getProductEntity.js"></script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>
